Linux shell Escape Character metacharacter wildcard special character summary, shell escape1. linux shell wildcard (wildcard)
Wildcards are processed by shell (not by the command statements involved, but we have not found any introduction to these
Linux Shell wildcards, escape characters, metacharacters, special characters, shell escape1. linux shell wildcard (wildcard)
Wildcards are processed by shell (not by the command statements involved, but we have not found any introduction to these
Introduction to Linux Shell wildcard, metacharacters, escape character usagesWhen it comes to shell wildcard characters (wildcard), they are often used when used. Here is an example:
1
1
Here is an example:
The code is as follows:
[Chengmo@localhost ~/shell]$ ls
A.txt B.txt C.old
#2
[Chengmo@localhost ~/shell]$ ls *.txt
A.txt B.txt
#3
[Chengmo@localhost ~/shell]$ ls d*.txt
LS: Unable to access d*.txt: No file or directory
Special symbols and their escapeAs you know, a shell command is made up of a command name and its arguments, for example cat testfile , where cat is the command name and Testfile is a parameter. The shell passes the parameter testfile to the cat
one, the Linux shell wildcard character (wildcard)wildcards are handled by the shell (not by the command statements involved, but we are not aware of these wildcard characters in the shell commands), it will only appear in the "Parameters" of the
one, the Linux shell wildcard character (wildcard)Wildcards are handled by the shell (not by the command statements involved, but we are not aware of these wildcard characters in the shell commands), it will only appear in the "Parameters" of the
1) Unix command:
Although any Unix command can be used in shell scripts, some more common commands are used. These commands are usually used for file and text operations.
Common command syntax and functions:
Echo"Some text": print the text on
What is a shell? What is shelling? This is a question that is often confusing and often raised, but it is not naïve at all. When you want to hear about shelling and trying to understand it, it means you've been on a safe site for a while. Below, let'
If the expression contains special characters, the Shell will replace it. For example, using a variable in double quotes is a substitution, and an escape character is also a substitution.As an example:
#!/bin/bash
A=ten
echo-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.